projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9208588
)
appchooserwidget: check for g_app_info_should_show()
author
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 15 Oct 2012 22:45:49 +0000
(18:45 -0400)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 15 Oct 2012 22:45:49 +0000
(18:45 -0400)
This ensures NoDisplay=true or NotShowIn/OnlyShowIn values in the
desktop file are respected.
gtk/gtkappchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkappchooserwidget.c
b/gtk/gtkappchooserwidget.c
index ea4ac44a6374c40103c820ac155e34fe4326a629..36875dfb0df3b3fa580a4d2dd79f366f1d2215a8 100644
(file)
--- a/
gtk/gtkappchooserwidget.c
+++ b/
gtk/gtkappchooserwidget.c
@@
-536,6
+536,9
@@
gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
!g_app_info_supports_files (app))
continue;
+ if (!g_app_info_should_show (app))
+ continue;
+
if (g_list_find_custom (exclude_apps, app,
(GCompareFunc) compare_apps_func))
continue;